package com.xioyi.news.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class AopDemo {
	
	@Pointcut("execution(*com.xioyi.dao.impl.AccountDao.*(..))")
	public void anyMethod(){
		
	}
	
	@Before("anyMethod()")
	public void beforeAdvice(){
		System.out.println("执行前置通知");
	}
}
